home *** CD-ROM | disk | FTP | other *** search
- @echo off
- rem
- rem Usage: PR3COL infile
- rem
- rem Reformat the input file to 49 characters/line, then print in 3 columns
- rem THIS IS FOR PRINTERS THAT SUPPORT A 20 CHARACTER-PER-INCH PITCH
- rem If your printer supports 17 cpi and you want 3 columns, you could change
- rem the line length from 49 to 41.
-
- if "%1" == "" echo Usage: PR3COL infile
- if "%1" == "" goto end
- if not "%2" == "" echo Usage: PR3COL infile
- if not "%2" == "" goto end
-
- rap %1 /W49 \rap.tmp
- if not ERRORLEVEL EQ 0 goto raperror
- colprint.exe \rap.tmp \colprint.tmp /c3
- if not ERRORLEVEL EQ 0 goto cperror
- print \colprint.tmp
- goto end
- :raperror
- echo Error in RAP processing
- goto end
- :cperror
- echo Error in COLPRINT processing
- goto end
- :end
-